package dataFromXml;

import java.util.ArrayList;
import java.util.List;

import org.dom4j.Element;

public class DataFilter {

	Element dNode;
	List<UniqueFilter> ufList;
	List<AttrConstraint> acList;
	
	public DataFilter(Element self) {
		dNode = self;
		ufList = new ArrayList<>();
		acList = new ArrayList<>();
	}
	
	public void addUniqueFilter(UniqueFilter son) {
		ufList.add(son);
	}
	
	public void addAttrConstraint(AttrConstraint son) {
		acList.add(son);
	}
	
	public List<UniqueFilter> getUniqueFilterList() {
		return ufList;
	}
	
	public List<AttrConstraint> getAttrConstraintList() {
		return acList;
	}
	
	public Element getElement() {
		return dNode;
	}
}
